<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" 
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"
                >

        <h2>Ingrese los datos de la obra</h2>
            <h:panelGrid columns="2" id="panelDatosObra">
                 <h:outputText value="Nombre"></h:outputText>
                <h:inputText id="txtNombre" value="#{obraController.obra.nombre}" disabled="#{empty obraController.obra}"></h:inputText>
                <h:outputText value="Direccion"></h:outputText>
                <h:inputText id="txtDireccion" value="#{obraController.obra.direccion}"  disabled="#{empty obraController.obra}"></h:inputText>
                <h:outputText value="Latitud"></h:outputText>
                <h:inputText id="txtLat" value="#{obraController.obra.latitud}"  disabled="#{empty obraController.obra}"></h:inputText>
                <h:outputText value="Longitud"></h:outputText>
                <h:inputText id="txtLong" value="#{obraController.obra.longitud}" disabled="#{empty obraController.obra}"></h:inputText>
                <h:commandButton value="Guardar" action="#{obraController.guardar()}" />
                <h:commandButton value="Cancelar" action="#{obraController.cancelar()}" />                
            </h:panelGrid>                            
</ui:composition>